package com.anivia.system.auth.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 更新部门信息
 * </p>
 *
 * @author wangj
 */
@Data
@Schema
public class DeptAddOrUpdateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id，更新时必传，新增时不传")
    private Integer id;

    @Schema(description = "父部门id，不传默认为最顶级")
    private Integer pid;

    @Schema(description = "部门名称")
    @NotBlank(message = "名称不能为空")
    private String name;
}
